<span class="layui-breadcrumb" style="visibility: visible;">
  <a href="/order/lists">订单管理</a><span lay-separator="">/</span>
  <a href="/order/lists">订单列表</a><span lay-separator="">/</span>
  <a><cite>订单详情</cite></a>
</span>
<div>
    订单信息
    <hr class="layui-bg-green">
</div>
<div class="layui-row">
    <table class="layui-table">
  <colgroup>
    <col width="20%">
    <col width="30%">
    <col width="20%">
    <col width="30%">
  </colgroup>
  <tbody>
    <tr>
      <td>订单编号</td>
      <td><?=$rs[0]['order_no']?></td>
      <td>支付状态</td>
      <td><?= c("type.pay_status")[$rs[0]['pay_status']]?></td>
    </tr>
    <tr>
      <td>商品价格</td>
      <td><?=$rs[0]['total_money']?></td>
      <td>订单总价</td>
      <td><?=$sum_price?></td>
    </tr>
    <tr>
      <td>收货人姓名</td>
      <td><?=$rs[0]['sh_name']?></td>
      <td>收货人电话</td>
      <td><?=$rs[0]['sh_phone']?></td>
    </tr>
    <tr>
      <td>收货人地址</td>
      <td colspan="3"><?=$rs[0]['sh_address']?></td>
    </tr>
    <tr>
        <td>发货状态</td>
        <td><?= c("type.fahuo_status")[$rs[0]['fahuo_status']]?></td>
        <td></td>
        <td></td>
    </tr>
  </tbody>
</table>
</div>
商品信息
<hr class="layui-bg-green">
<form class="layui-form">
<table class="layui-table" lay-skin="line">
  <colgroup>
      <col width="60">
      <col width="80">
      <col width="150">
      <col width="150">
      <col width="100">
      <col width="80">
  </colgroup>
  <thead>
    <tr>
        <th>操作</th>
        <th>商品ID</th>
        <th>名称</th>
        <th>规格</th>
        <th>价格</th>
        <th>数量</th>
    </tr>
  </thead>
  <?php $overfahuo = 0;?>
  <tbody>
    <?php foreach($rs as $v):?>
        <?php if($v['pay_status'] == 1 && $v['fahuo_status'] == 0):?>
            <?php $overfahuo = 1;?>
        <?php endif;?>
        <tr>
          <td>
              <?php if($v['fahuo_status'] == 0):?>
                  <input type="checkbox" name='ids[]' value="<?=$v['id'];?>">
              <?php else:?>
                  <a href="http://www.kuaidi100.com" target="_blank" class="layui-btn layui-btn-xs" lay-event="detail">物流信息</a>
              <?php endif;?>
          </td>
          <td><?=$v['goods_id'];?></td>
          <td><?=$v['title'];?></td>
          <td><?=$v['goods_price_title'];?></td>
          <td><?=$v['goods_price_price'];?></td>
          <td><?=$v['nums'];?></td>
        </tr>
    <?php endforeach;?>
  </tbody>
</table>
<?php if($overfahuo == 1):?>
物流信息
<hr class="layui-bg-green">
<div class="layui-row">
    <div class="layui-fluid">
      <div class="layui-card">
        <div class="layui-card-body">
          <div class="layui-form-item">
            <label class="layui-form-label">物流单号</label>
            <div class="layui-input-block">
              <input type="text" name="kd_no" value="" required lay-verify="required" placeholder="请输入物流单号" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">物流公司</label>
            <div class="layui-input-block">
                <select name='kd_id'>
                    <option value="">--请选择快递--</option>
                    <?php foreach($elist as $v):?>
                        <option value="<?=$v['id'];?>"><?=$v['name'];?></option>
                    <?php endforeach?>
                </select>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">快递备注</label>
            <div class="layui-input-block">
              <input type="text" name="kd_note" value="你好，你的商品已发货，请注意查收，谢谢" placeholder="请输入快递备注" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </div>
      </div>
    </div>
</div>
<?php endif;?>
</form>
